package com.oasistudio.ads.expert.banner;

import java.util.Set;
import java.util.TreeSet;

import android.app.Activity;
import android.widget.FrameLayout.LayoutParams;
import android.widget.TextView;

public class TitleBuilder {
	public static final Set<String> UNION_NAMES = new TreeSet<String>();
	public TextView createTitle(Activity activity, String union) {
		UNION_NAMES.add(union);
		TextView textView = new TextView(activity);
		textView.setText(union);
		// textView.setId(5);
		textView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
		return textView;
	}
	public TextView createTitle(Activity activity, int count) {
		TextView textView = new TextView(activity);
		textView.setText("展示次数："+count);
		textView.setPadding(30, 0, 0, 0);
		// textView.setId(5);
		textView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
		//textView.setGravity(Gravity.CENTER_HORIZONTAL);
		return textView;
	}
}
